package com.aaa.hospital.controller;

import com.aaa.hospital.pojo.domain.Emp;
import com.aaa.hospital.pojo.domain.Login;
import com.aaa.hospital.result.AjaxResult;
import com.aaa.hospital.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: danghui
 * @Date: 2022/2/23 9:40
 * @Description: TODO
 */
@RestController
@RequestMapping("Info")
public class  InfoController {
    @Autowired
    private InfoService infoService;
    @RequestMapping("list")
    public AjaxResult listInfo(Emp emp){
        return infoService.listInfo(emp);
    }
    @RequestMapping("addAccount")
    public AjaxResult addAccount(Login login){
        return infoService.addAccount(login);
    }
}
